
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { SystemModule } from '../system/system.module';
import ProductionOrder from '@main/entities/service/admin/production/production-order.entity';
import { ProductionOrderController } from './order/order.controller';
import { ProductionOrderService } from './order/order.service';
import SysDictionary from '@main/entities/service/admin/sys/sys-dictionary.entity';
import { WipModule } from '../wip/wip.module';
import { BaseModule } from '../base/base.module';
import SysUser from '@main/entities/service/admin/sys/sys-user.entity';
import BaseShift from '@main/entities/service/admin/base/base-shift.entity';
import BaseMachine from '@main/entities/service/admin/base/base-machine.entity';
import WipShutdownList from '@main/entities/service/admin/wip/wip-shutdown-list.entity';
import ReportFormPeriodStatusMonitoring from '@main/entities/service/admin/reportForm/report-form-period-status-monitoring.entity';
import WipMachineMaintain from '@main/entities/service/admin/wip/wip-machine-maintain.entity';

@Module({
  imports: [
    SystemModule,
    BaseModule,
    WipModule,
    TypeOrmModule.forFeature([
      ProductionOrder,
      SysUser,
      BaseShift,
      BaseMachine,
      SysDictionary,
      WipShutdownList,
      ReportFormPeriodStatusMonitoring,
      WipMachineMaintain
    ]),
  ],
  controllers: [ProductionOrderController],
  providers: [ProductionOrderService],
  exports: [TypeOrmModule, ProductionOrderService],
})
export class ProductionModule {}
